package com.situ.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class LayData {
    private int code = 0;
    private String msg = "";
    private int count = 0;
    private List data;
    private String qrCode ;
    private int paid;
    private  String pcode;

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public int getPaid() {
        return paid;
    }

    public void setPaid(int paid) {
        this.paid = paid;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public LayData(int count, List data) {
        this.count = count;
        this.data = data;
    }
    public LayData() {}
    public LayData(String imgurl) {
        this.data = new ArrayList();
        HashMap map = new HashMap();
        map.put("src", imgurl);
        this.data.add(map);
      System.out.println(this.data);
    }


    @Override
    public String toString() {
        return "LayData{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", count=" + count +
                ", data=" + data +
                ", qrCode='" + qrCode + '\'' +
                ", paid=" + paid +
                ", pcode='" + pcode + '\'' +
                '}';
    }


}











































